package com.example.chat.domain.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName(value = "moments")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Moment {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private Long userId;
    @TableField("context")
    private String context;
    @TableField("likes")
    private Integer likeCount;
    @TableField("type")
    private Integer type;
    @TableField("image_urls")
    private String imageUrls;
    @TableField("file")
    private String file;
    @TableField("visibility")
    private Integer visibility;
    @TableField("create_time")
    private String time;
    @TableField("update_time")
    private String  updateTime;

}